@inherits RenderViewPage
@using Umbraco.Cms.Web
@using PBDesk.com.WebSite.Helpers
@{
    
    var bannerNodes =  ViewData["BannerNodes"]  as IEnumerable<Content>;
    string bannerType = ViewData["BannerType"].ToString();
    string className = MyHelper.GetBannerColumnStyle(bannerNodes.Count());
    string divId = bannerType + "banner";
} 
<div id="@divId">
@foreach (var node in bannerNodes)
{ 
    <div class="@className">
        <h2>@Html.Raw(node.DynamicField("widgetTitle"))</h2>
        <div style="padding:10px 5px 5px 10px">@Html.Raw(node.DynamicField("widgetContent"))</div>
    </div>
}
</div>
